import numpy as np
import cv2 as cv

# Create a white image
img = np.ones((512,512,3), np.uint8)*255

# text
text = 'OpenCV'
textBottomLeftPt = (0,511)
fontType = cv.FONT_HERSHEY_SIMPLEX
fontScale = 1
color   = (0,0,255)
thinknessPx = 1
lineType = cv.LINE_AA
cv.putText(img, text,textBottomLeftPt,
           fontType,fontScale, color,thinknessPx,lineType)

cv.imshow("img", img)
cv.waitKey(0)
cv.destroyAllWindows()